<script lang="ts" setup>
const props = defineProps(["close"])

const closeDialog = () => {
    props.close()
}


</script>

<template>
    <section id="dialog-compontent">
        <h1>Hello World</h1>
        <button @click="closeDialog" id="close">关闭</button>
    </section>
</template>

<style scoped lang="less">
#dialog-compontent {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    color: white;
}

#close {
    color: aliceblue;
    width: 200px;
    height: 200px;
    background-color: #fff;
}
</style>